/*
 * @Author: heyang
 * @Date: 2024-07-19 21:06:46
 * @LastEditors: william-occam
 * @LastEditTime: 2024-10-15 22:30:17
 * @FilePath: \draw-project\src\store\modules\zhuanjiaList.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import {defineStore} from 'pinia'

export const useZhuanJiaListStore = defineStore('zhuanJiaList',{
  // 真正存储数据的地方
  state(){
    return {
      zhuanJiaList: [],
      zhengFulist: [],
      yiliaoList:[],
      zhengFuReadyDrawlist: [], //已经抽取的
      zhuanJiaReadyList: [], //已经抽取的
      yiLiaoReadyDrawList: [], //已经抽取的
      whiteList: [], //白名单列表
    }
  },
  actions: {
    setZhuanJiaList(zhuanJiaList: any[]) {
      this.zhuanJiaList = zhuanJiaList;
    },

    setZhengFulistList(zhengFulistList: any[]) {
      this.zhengFulist = zhengFulistList;
    },

    setYiliaoList(yiliao: any[]) {
      this.yiliaoList = yiliao;
    },
    setZhengFuReadyDrawlist(zhengFuReadyDrawlist: any[]) {
      this.zhengFuReadyDrawlist = [...this.zhengFuReadyDrawlist, ...zhengFuReadyDrawlist];
    },
    setZhuanJiaReadyList(zhuanJiaReadyList: any[]) {
      this.zhuanJiaReadyList = [...this.zhuanJiaReadyList, ...zhuanJiaReadyList];
    },
    setYiLiaoReadyDrawList(yiLiaoReadyList: any[]) {
      this.yiLiaoReadyDrawList = [...this.yiLiaoReadyDrawList, ...yiLiaoReadyList];
    },
    setWhiteList(whiteList) {
      this.whiteList = whiteList;
    },
  }
})